﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Utilities.General.Message
{
    public class MsgArgs
    {
        public PushType SendType;
        /// <summary>
        /// 接收人(可多人)
        /// </summary>
        public IList<string> RecvUsers = new List<string>();
        /// <summary>
        /// 抄送人列表(可多人)
        /// </summary>
        public IList<string> CCUsers = new List<string>();
        /// <summary>
        /// 是否延时发送(默认不延时)
        /// </summary>
        public bool Delay = false;
        /// <summary>
        /// 发送时间(默认延后10秒)
        /// </summary>
        public DateTime SendTime = DateTime.Now.AddSeconds(30);
        /// <summary>
        /// 消息体(可多个)
        /// </summary>
        public MsgBody Body;
    }

    public class MsgBody
    {
        /// <summary>
        /// 主题
        /// </summary>
        public string Subject;
        /// <summary>
        /// 封面图
        /// </summary>
        public string Album;
        /// <summary>
        /// 简要描述
        /// </summary>
        public string Dejscrption;
        /// <summary>
        /// 内容
        /// </summary>
        public string Body;

    }

    public enum PushType
    {
        /// <summary>
        /// 电子邮件
        /// </summary>
        email,
        /// <summary>
        /// 手机短信
        /// </summary>
        sms,
        /// <summary>
        /// 系统消息
        /// </summary>
        sysmsg,
        /// <summary>
        /// 微信推送
        /// </summary>
        wechat
    }
}
